import request from '@/utils/request'

// 查询插播列表
export function listCaption(query) {
  return request({
    url: '/ips/caption/list',
    method: 'get',
    params: query
  })
}

// 查询插播详细
export function getCaption(id) {
  return request({
    url: '/ips/caption/' + id,
    method: 'get'
  })
}

// 新增插播
export function addCaption(data) {
  return request({
    url: '/ips/caption/save',
    method: 'post',
    data: data
  })
}

// 修改插播
export function editCaption(data) {
  return request({
    url: '/ips/caption/update',
    method: 'put',
    data: data
  })
}

// 删除插播
export function delCaption(id) {
  return request({
    url: '/ips/caption/remove/' + id,
    method: 'delete'
  })
}

// 导出插播
export function exportCaption(query) {
  return request({
    url: '/ips/caption/export',
    method: 'get',
    params: query
  })
}
